package com.yunhe.marketing.repository;

import com.yunhe.common.mybatis.domain.QueryCondition;
import com.yunhe.marketing.domain.CompanyHeat;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: CompanyHeatRepository
 * @Description:
 * @author: GongDaCheng
 * @Date: 10:00 2021/3/15
 */
@Repository
public interface CompanyHeatRepository {

    /**
     * @Description 查询单个企业热度值
     * @Param Long itemId
     * @Return CompanyHeat
     * @Date 2021/3/15 10:03
     */
    CompanyHeat selectHeatCompany(@Param("itemId") Long itemId);

    /**
     * @Description 查询企业热度列表
     * @Param
     * @Return List<CompanyHeat>
     * @Date 2021/3/15 10:05
     * @param
     */
    List<CompanyHeat> selectHeatCompanyList(QueryCondition queryCondition);

    /**
     * @Description 无参查询企业热度列表
     * @Return List<CompanyHeat>
     */
    List<CompanyHeat> selectHeatCompanyList();

    /**
     * 添加企业热度值
     * @param companyHeat 企业热度
     */
    void addCompanyHeat(CompanyHeat companyHeat);

    /**
     * 更新企业热度值
     * @param companyHeat 企业热度
     */
    void updateCompanyHeat(CompanyHeat companyHeat);
}
